﻿using BestTrader.Cms.ViewModels;
using FluentValidation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BestTrader.Cms.Admin.Validation
{
    public class ServiceChargeValidation : AbstractValidator<ServiceChargeAddOrModifyModel>
    {
        public ServiceChargeValidation()
        {
            //RuleFor(x => x.ManagerId).NotNull().WithMessage("代理编号不能为空");
            RuleFor(x => x.ProjectPrice).GreaterThan(0).WithMessage("手续费必须大于零");
            //RuleFor(x => x.StartDate).WithMessage("密码不能为空且必须符合规则");

        }
    }
}
